<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>我的准考证</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name=”apple-mobile-web-app-status-bar-style” content=”default” />
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black” />
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no"/>


    <link href="${s.base}/mobile/css/weui.min.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/jquery-weui.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/zhkw.css" rel="stylesheet">
    <script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>

</head>
<body>
<div class="main-content75">
    <div class="admission-ticket-tit">考务安排</div>
    <div class="admission-ticket-titnei">准考证</div>
    <div class="admission-ticket-txt">
        <div class="one-inch-photo" style="background:url(${picUrl}) top center no-repeat;background-size:cover;"></div>
        <div class="div-line-txt" id="studentbaseNews">
        </div>
    </div>
    <div class="admission-ticket-mid-tit">一、考试时间及地点</div>
    <div class="admission-ticket-notcie">
        <div class="notices-txt">
            <span style="font-weight:600;"> 1、考试时间:</span><br>
            <span  id="studentExam"></span>
        </div>
        <p id="studentlocation" style="margin-top:0.2rem;">
            <!--<span style="font-weight:600;">2、考试地点:</span><br>-->
            <!--<span style="margin-left: 0.4rem;">1号教学楼3层304室</span><br>-->
        </p>
    </div>
    <div class="admission-ticket-mid-tit" style="letter-spacing:0.1rem;">二、考生须知</div>
    <div class="admission-ticket-notcie" id="noticemsg">

    </div>
</div>
</body>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-weui.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fastclick.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>
<script type="text/javascript">
    var applyId = '${applyId}';
    var token = '${token}';

    $(function(){
        initMySocietyData();
    })

    function initMySocietyData() {
        $.fn.doGet('/phone/kwmanagement/studentSignMessageNew', {applyId:applyId,token:token}, function (result) {
            if (result.code === 0) {
                postMySocietyData(result.data);
            } else {
                $.toast('获取数据失败', "text");
            }
        });

    }
    function postMySocietyData(data) {
        var basenew ="";
        var kmmcnew ="";
        var loacationNew = "";
        basenew += ' <p>准考证号：<span>'+data.examNum+'</span> </p>'+
            '<p>姓名：<span>'+data.name+'</span></p>'+
            '<p>考试座位号：<span>'+data.stSeatNum+'</span></p>';


        loacationNew += '<span style="font-weight:600;">2、考试地点:</span><br>'+
                '  <span style="margin-left: 0.4rem;">'+data.kcPlace+'</span><br>';

        var newData =  data.kwKmMessageList;
        for(var i=0;i<newData.length;i++){
            var e = newData[i];
            kmmcnew +='<div>'+
                    '<span style="margin-left: 0.4rem;">'+e.name+'</span><br>';
            var newe = e.date;
            for(var j=0;j<newe.length;j++){
                var kce = newe[j];
                kmmcnew +='<div>'+
                    '<span style="margin-left: 0.4rem;">'+kce.noon+'</span><br>';
                for(var z=0;z<kce.detail.length;z++){
                    var newkc = kce.detail[z];
                    kmmcnew += '<span style="margin-left: 0.8rem;">'+newkc.kmInfo+'</span><br>';
                }
            }
            kmmcnew +=' </div>';
        }
        $('#studentbaseNews').html(basenew);
        $('#studentExam').html(kmmcnew);
        $('#studentlocation').html(loacationNew);
        $('#noticemsg').html(data.remark);








    }


</script>
</html>
